package com.timerecording.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.timerecording.domain.entity.ReSalaryEntity;
import com.timerecording.domain.entity.ReTeamEntity;
import com.timerecording.domain.entity.RecordTimeEntity;
import com.timerecording.domain.vo.RecordTimeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RecordTimeDao extends BaseMapper<RecordTimeEntity> {

    /** 两表查询小时工资数
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/4/4
     */

    List<ReSalaryEntity> queryHourSalary(@Param("deleteFlag") Integer deleteFlag);

    /** 两表查询班次名称
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/4/4
     */

    List<ReTeamEntity> queryTeam(@Param("deleteFlag") Integer deleteFlag);

    /** 查询工时列表
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/4/5
     */

    List<RecordTimeVO> queryRecordTimeList(@Param("deleteFlag") Integer deleteFlag,@Param("recordTime") String recordTime);

    /** 编辑工时
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/4/20
     */

    List<RecordTimeVO> eduitRecordTime(@Param("recordId") Integer recordId);

    /** 查询工作天数
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/5/1
     */

    int workDayQuery(@Param("deleteFlag") Integer deleteFlag,@Param("recordTime") String recordTime);


    /** 工时记录查询
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2024/5/2
     */

    List<RecordTimeEntity> exportExcel();
}
